using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Common.DTO
{
    /// <summary>
    /// 分页请求基类
    /// </summary>
    public class PagedRequestDto
    {
        /// <summary>
        /// 当前页码（从1开始）
        /// </summary>
        public int PageNumber { get; set; } = 1;

        /// <summary>
        /// 每页数量
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 页码（兼容性属性）
        /// </summary>
        public int Page 
        { 
            get => PageNumber; 
            set => PageNumber = value; 
        }

        /// <summary>
        /// 每页数量（兼容性属性）
        /// </summary>
        public int Limit 
        { 
            get => PageSize; 
            set => PageSize = value; 
        }
    }
} 